<style type="text/css">
.storelogo img{width:3.2rem;height:3.2rem}
.merchgroup .store-star {padding:0.1rem 0 0.2rem 0;font-size:0.55rem;line-height:1rem}
.merchgroup .store-star img{height:0.66rem}
.star-on,.star-off{position:absolute;top:1rem;left:0;overflow:hidden}
.star-rate {margin-left:0.2rem;color:#19b955}
.store-distance{float:right;color:#999}
.store-moneylimit{font-size:0.55rem}
.delete{color: #bebebe;text-decoration:line-through;font-size:0.55rem}
</style>
<div class="fui-page order-create-page fui-page-current">
	<div class="fui-content" style="background:#fff">
		<div style="padding:0 0.6rem">
			<div class="fui-list-group radius" style="margin-top:0">
			<div ng-repeat="item in pagedata.list" class="fui-list">
				<div class="fui-list-media">
					<img ng-src="{{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}}" class="round">
				</div>
				<div class="fui-list-inner">
					<div class="row">
						  <div class="row-text" >
						 {{item.title}}
						  </div>
					</div>
					<div class="text bold red">{{item.price}}/{{item.unit || '件'}}</div>
					<div class="subtitle">
						<span><i class="icon icon-paihao0"></i> {{item.likenum || 0}}人</span>
						<span style="margin-left:0.5rem">{{item.updatetimetitle}}</span>
					</div>
					<div class="subtitle">
						<span style="margin-right:0.6rem"><red>{{pagedata.list_status[item.status]}}</red></span>
						<span><red>{{item.noshow==1?'已下架':'已上架'}}</red></span>
					</div>
				</div>
				<div class="row-remark">
					<div href="javascript:;" ng-click="pagedata.setlike(item.id);" class="jylabel jylabel-red active">取消收藏</span></div>		
				</div>
			</div>
			</div>
			<div ng-if="!pagedata.loading && (!pagedata.list || pagedata.list.length<1)" class='content-empty' style="margin-top:0">
				<i class='icon icon-chakanpingjia' style="font-size:2rem"></i><br/>暂时没有任何收藏
			</div>
			<div ng-if="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
		</div>
		<div ng-include="sys_html('_copyright')"></div>
	</div>
</div>

<div ng-include="sys_html('_footer')"></div>
<script>
//获取收藏
scope.pagedata.setlike=function(listid){
	scope.post_json('jy_wechatnews/index/setlike/id='+listid,{},function(res){
		scope.message(res,'','jy_wechatnews/myshoucang/')
	});
}
//滚动加载
	scope.tool.get_list('jy_wechatnews/myshoucang/getlist/keyword='+scope.pagedata.params.keyword,true);
	scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('jy_wechatnews/myshoucang/getlist/keyword='+scope.pagedata.params.keyword);
	}
	//手机软键盘--搜索
	$("body").keydown(function() {
		if (event.keyCode == "13") {
			$('#searchsub').click();
		}
	});
</script>